package com.dearbinge.data.pojo.commodityspec;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName("commodity_spec")
public class CommoditySpec implements Serializable {
    @ApiModelProperty("商品规格表主键id")
    private Integer id;

    @ApiModelProperty("商品id")
    private Integer commodityId;

    @ApiModelProperty("规格样板图片")
    private String commodityUrl;

    @ApiModelProperty("规格描述 必传")
    private String specificationDesc;

    @ApiModelProperty("库存数量 必传")
    private Integer stockCount;

    @ApiModelProperty("价格（零售价） 必传")
    private BigDecimal retailPrice;

    @ApiModelProperty("价格（批发用于计算佣金）")
    private BigDecimal tradePrice;

    @ApiModelProperty("价格（活动价）")
    private BigDecimal discountPrice;

    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 是否删除（0：不删除  1：删除）
     */
    @ApiModelProperty("是否删除（0：不删除  1：删除）")
    private Boolean deleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityUrl() {
        return commodityUrl;
    }

    public void setCommodityUrl(String commodityUrl) {
        this.commodityUrl = commodityUrl == null ? null : commodityUrl.trim();
    }

    public String getSpecificationDesc() {
        return specificationDesc;
    }

    public void setSpecificationDesc(String specificationDesc) {
        this.specificationDesc = specificationDesc == null ? null : specificationDesc.trim();
    }

    public Integer getStockCount() {
        return stockCount;
    }

    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public BigDecimal getTradePrice() {
        return tradePrice;
    }

    public void setTradePrice(BigDecimal tradePrice) {
        this.tradePrice = tradePrice;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }
}